<?php if (isset($is_common_home) && $is_common_home): ?>
<div class="container module-bottom"><div class="row"><div class="col-sm-12">
<?php endif ?>

<?php
  switch ($type) {
    case 'single':
      $class = 'col-sm-12';
      break;
    case 'two_rows':
      $class = 'col-sm-6 col-xs-6';
      break;
    case 'three_rows':
      $class = 'col-sm-4 col-xs-12';
      break;
    default:
      $class = 'col-sm-3 col-xs-6';
      break;
  }
 ?>

<div class="row image-combo-box">
  <?php foreach ($images as $index => $image): ?>
    <div class="<?php echo $class ?>">
      <div class="item">
        <a href="<?php echo $image['href'] ?: 'javascript:void(0);'; ?>"><img src="<?php echo $image['image']; ?>" class="img-responsive"></a>
      </div>
    </div>
  <?php endforeach; ?>
</div>
<?php if (isset($is_common_home) && $is_common_home): ?>
</div></div></div>
<?php endif ?>
